<?php

namespace So\Annotation;

use Attribute;
use Hyperf\Di\Annotation\AbstractAnnotation;

/**
 * 管理日志记录
 * @Annotation
 * @Target({"CLASS","METHOD"})
 * @author Saopig <1306222220@qq.com>
 */
#[Attribute(Attribute::TARGET_CLASS)]
class AdminLog extends AbstractAnnotation
{
    /**
     * nolog
     * @var array
     */
    public array $nolog = [];

    /**
     * 默认绑定场景
     * @param array $value
     */
    public function __construct($value = [])
    {
        parent::__construct($value);
        $this->bindMainProperty('nolog', $value);
    }
}